package cn.com.zzz.util;

import net.sf.json.JSONObject;
import cn.bbs.ba.base.BaseDto;

public class DataFormatUtil {

	public static String formatRetData(BaseDto base) {
		BaseDto ret = new BaseDto();
		ret.setValue("root", base);
		JSONObject jsonObject=JSONObject.fromObject(ret);

//		JSONArray curArr = JSONArray.fromObject(ret);
		return jsonObject.toString(); 
	}
}
